/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:org.cesgroup.course.sample</p>
 * <p>File:ProxyObject.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 Sep 2, 2019 5:32:37 PM
 */
package org.cesgroup.course.sample;

/**
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date Sep 2, 2019 5:32:37 PM
 * @version 1.0.2019
 */
public class ProxyObject extends AbstractObject {

	private RealObject realObject;
	
	public ProxyObject(RealObject realObject) {
		this.realObject = realObject;
	}
	
	@Override
	public void operation() {
		System.out.println("do something before real operation...");
		
		realObject.operation();
		
		System.out.println("do something after real operation...");
	}
}
